<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="d1"></div>

<script>
    setTimeout(function () {
        let count = 0 ;

        setInterval(function () {
            count++;
            d1.innerHTML+= count%2==0?
                "<img src='atm.JPEG'>":"<img src='11.png'>";
        },100)
    },1000)
</script>
</body>
</html>